const fakeData = {
    "/login": {
        enable: false,
        data: {
            username: '测试用户',
            userType: 1,
            token: "rq3y89ryu489t89tq49ty489t93483478y"
        }
    }
}

const enable = true

export default {
    getFakeData(apiName) {
        if (!enable) return undefined
        if (fakeData[apiName] === undefined) return undefined
        if (!fakeData[apiName].enable) return undefined
        return fakeData[apiName].data
    }
}